﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Model
{
    /// <summary>
    /// 
    /// </summary>
    public enum Role : int
    {
        Admin = 0,
        User = 1
    }


    /// <summary>
    /// 
    /// </summary>
    public class User
    {

        [Required]
        public virtual int Id { get; set; }

        [Required]
        [Display(Name = "Nom")]
        public virtual string Name { get; set; }

        [Required]
        [Display(Name = "Email")]
        public virtual string Email { get; set; }


        [Required]
        [Display(Name = "Mot de passe")]
        public virtual string Password { get; set; }

        public virtual Role Role { get; set; }
        public virtual Image Image { get; set; }
    }
}
